package com.qitmiaojie.service;

import com.qitmiaojie.controller.utils.GeoResult;
import com.qitmiaojie.controller.utils.Result;
import com.qitmiaojie.pojo.Leave;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qitmiaojie.pojo.dto.Examine;

import javax.servlet.http.HttpServletResponse;

/**
 *
 */
public interface LeaveService extends IService<Leave> {
    /***
    * @description 今日流动
    *
    * @return
    * @author
    * @date
    */
    Result getStudentStream();
    /***
    * @description 近一周情况
    *
    * @return
    * @author
    * @date
    */
    Result getLastWeek();

    /***
    * @description 分页查询
    * @param name
     * @param id
     * @param examine
     * @param currentPage
     * @param size
    * @return
    * @author
    * @date
    */
    Result getPage(String name, String id, String examine, Integer currentPage, Integer size);
    /***
    * @description 高德getCoordinate
    * @param address
    * @return
    * @author
    * @date
    */
    Result getByGeography(String address);

    /***
    * @description 添加请假信息
    * @param examine
    * @return
    * @author
    * @date
    */
    Result addExamine(Examine examine);
    /***
    * @description TODO
    * @param id
     * @param examine
    * @return 修改请假信息
    * @author
    * @date
    */
    Result updateExamineById(Integer id, String examine);

    Result updateLeave(Leave leave);
    /***
    * @description 请假信息导出
    * @param response
    * @return
    * @author
    * @date
    */
    void downLoadExcelAll(HttpServletResponse response);

    Result getDayTime();

    GeoResult getGeographyJson();
}
